package casa.depesos.app.com.utils;

import com.mo.xi.ge.info.DaleInfoInstance;
import com.mo.xi.ge.info.DaleLoca;

import casa.depesos.app.com.App;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.GetCodeBean;
import casa.depesos.app.com.http.req.ReportReq;

public class Report {

    public static void show(String event) {
        new ReportReq(event, true, false).req(new ReqCallback<GetCodeBean>() {
            @Override
            public void callback(boolean success, GetCodeBean bean) {

            }
        });
    }

    public static void exit(String event) {
        new ReportReq(event, true, true).req(new ReqCallback<GetCodeBean>() {
            @Override
            public void callback(boolean success, GetCodeBean bean) {

            }
        });
    }

    public static void click(String event) {
        new ReportReq(event, false, false).req(new ReqCallback<GetCodeBean>() {
            @Override
            public void callback(boolean success, GetCodeBean bean) {

            }
        });
    }

    public static void toMone() {
        if (Constant.white) {
            return;
        }
        String token = DaleInfoInstance.Companion.get(App.getApp()).createTokenKey(DaleLoca.LOCA_NONE);
        Constant.setToken(token);
        DaleInfoInstance.Companion.get(App.getApp()).dalaDevice();
    }

    public static void adjustEvent(String event) {
        if (Constant.white) {
            return;
        }
//        AdjustEvent adjustEvent = new AdjustEvent(event);
//        Adjust.trackEvent(adjustEvent);
    }
}
